package com.zyh.utils;
import com.zyh.Application;
import com.zyh.entity.User;

public class PermissionUtils {

    public static boolean isAdmin() {
        User currentUser = Application.currentLoginUser;
        return currentUser != null
                && currentUser.getUserType() != null
                && "ADMIN".equals(currentUser.getUserType().trim());
    }
}
